import { createApp } from 'vue'
import { setupAntd } from './plugins/antd-ui'
import App from './App.vue'
import router from './router/index'
import store from './store'
import api from './api/api'
import * as antIcons from '@ant-design/icons-vue'
// import icon from '@ant-design/icons-vue'
// interface iconFace {
//     [key: string]:any
// }
type iconFace = {[key: string]: any}
const app = createApp(App)
Object.keys(antIcons).forEach((key: string) => {
    app.component(key, (antIcons as iconFace)[key])
})
app.use(store)
app.use(router)
// app.use(icon)
app.config.globalProperties.$API = api
// app.config.devtools = true
setupAntd(app)
app.mount('#app')
